import request from '@/utils/http.js'

// 保存场次
export const saveSessionApi = (data) => {
  return request({
    url: 'sms/backend/sSession/save',
    method: "POST",
    data: JSON.stringify(data),
  })
}

// 获取场次信息
export const getSessionListApi = (params) => {
  return request({
    url: 'sms/backend/sSession/list',
    method: "GET",
    params: params,
  })
}


// 修改场次
export const updateSessionApi = (data) => {
  return request({
    url: 'sms/backend/sSession/update',
    method: "PUT",
    data: JSON.stringify(data),
  })
}

// 获取场次信息
export const getSessionInfoApi = (id) => {
  return request({
    url: `sms/backend/sSession/info/${id}`,
    method: "GET",
  })
}


// 设置商品
export const getSelectSessionList = (id) => {
  return request({
    url: `sms/backend/sSession/selectList/${id}`,
    method: "GET",
  })
}